<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>个人中心</title>
		<link rel="stylesheet" href="./Public/Home/bootstrap-3.3.5-dist/css/bootstrap.min.css" />
		<script type="text/javascript" src='./Public/Home/jquery.min.js'></script>
		<script type="text/javascript" src='./Public/Home/bootstrap-3.3.5-dist/js/bootstrap.min.js'></script>
		<link rel="stylesheet" href="./Public/Home/css/index.css" />
		<link rel="stylesheet" href="./Public/Home/css/myCenter.css" />
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/ifont.css"/>
		<script type="text/javascript" src='./Public/Home/js/index.js'></script>
		<script type="text/javascript" src='./Public/Home/js/area.js'></script>
	</head>
	<body>
	{{include file="VIEW_PATH/Common/header.php"}}
		<div class="_w100">
			<ul class="toper _container">
				<li>您的位置:</li>
				<li><a href="">首页</a><span class="glyphicon glyphicon-menu-right"></span></li>
				<li>我的优购</li>
			</ul>
		</div>
		<!--我的订单-->
		<!--公共左侧开始-->
		<div class="_w100">
			<div class="main _container">
				<div class="first fl">
					<div class="tl"><a href="">我的优购</a></div>
					<ul class="one">
						<li class="special">交易中心</li>
						<li><a href="{{U('Center/myindent')}}" >我的订单</a></li>
						<li><a href="">我的收藏</a></li>
						<li><a href="">我的预约</a></li>
						<li><a href="">商品评论/晒单</a></li>
						<li><a href="">站内消息<span>(0)</span></a></li>
					</ul>
					<ul class="one">
						<li class="special">我的资产</li>
						<li><a href="" >我的优惠券</a></li>
						<li><a href="">我的礼品卡</a></li>
						<li><a href="">我的积分</a></li>
					</ul>
					<ul class="one">
						<li class="special">个人设置</li>
						<script type="text/javascript">
							$(function(){
								//初始化方法
								area.init('area');								
								{{if value="$userData"}}
								//修改资料时用户原来的地址被选中
								area.selected("{{$userData['adres'][0]}}","{{$userData['adres'][1]}}","{{$userData['adres'][2]}}");
								{{else}}
								//候默认被选中效果
								area.selected('海南','海口','秀英区');
								{{endif}}
							})
						</script>
						<!--<li><a href="" >个人资料</a></li>-->
						<li >
							<!-- 模态框的声明 -->
							<div class="modal fade" id="myModal" tabindex="-1" id="dv">
								<!-- 模态框窗口声明 -->
								<div class="modal-dialog modal-default">
									<!-- 内容声明 -->
									<div class="modal-content">
										<div class="modal-header">
											<button class="close" data-dismiss="modal">&times</button>
											<h4 class="modal-title">会员资料</h4>
										</div>
										<div class="modal-body">			
												<form class="form-horizontal" action="{{U('Center/edit')}}" method="post">
													  <div class="form-group">
													    <label for="inputEmail3" class="col-sm-2 control-label">邮箱</label>
													    <div class="col-sm-10">
													      <input type="email" class="form-control" name="email"
													      	id="inputEmail3" placeholder="Email" value="{{$userData['email']}}">
													    </div>
													  </div>
													  <div class="form-group">
													    <label for="inputPassword3" class="col-sm-2 control-label">
													    	手机
													    </label>
													    <div class="col-sm-10">
													      <input type="text" class="form-control" 
													      	id="inputPassword3" placeholder="手机号" value="{{$userData['mobile']}}" name="mobile">
													    </div>
													  </div>
													  <div class="form-group">
													    <label for="inputPassword3" class="col-sm-2 control-label">
													    	固话
													    </label>
													    <div class="col-sm-10">
													      <input type="text" class="form-control" 
													      	id="inputPassword3" placeholder="固定电话" value="{{$userData['phone']}}" name="phone">
													    </div>
													  </div>
													  <div class="form-group">
													    <label for="inputPassword3" class="col-sm-2 control-label">
													    	真实姓名
													    </label>
													    <div class="col-sm-10">
													      <input type="text" class="form-control" 
													      	id="inputPassword3" placeholder="" value="{{$userData['username']}}" name="username">
													   </div>
													   
													 <div class="form-group">	
														 <label for="inputPassword3" class="col-sm-2 control-label">
														 	性别
														 </label>
														<label class="radio-inline col-sm-2 control-label">	
															<?php if ($userData['sex']=='男') { ?>													
																<input type="radio" name="sex" id="inlineRadio1" value="男" checked="checked">
															<?php } else { ?>	
																<input type="radio" name="sex" id="inlineRadio1" value="男">
															<?php } ?>
																 男
														</label>
														<label class="radio-inline col-sm-2 control-label">
														  <?php if ($userData['sex']=='女') { ?>													
																<input type="radio" name="sex" id="inlineRadio1" value="女" checked="checked">
															<?php } else { ?>	
																<input type="radio" name="sex" id="inlineRadio1" value="女">
															<?php } ?>
																 女
														</label>
													 </div>						   
													    <div class="form-group">
													    <label for="inputPassword3" class="col-sm-2 control-label">
													    	出生日期
													    </label>
													   <select class="form-control fl"style="width: 100px;margin-left: 26px;" name="year">
													   
													   	<option value="{{$userData['birth'][0]}}" selected="selected">{{$userData['birth'][0]}}</option>													   	
														  <option>1996</option>
														  <option>1995</option>
														  <option>1994</option>
														  <option>1993</option>
														  <option>1992</option>
														  <option>1991</option>
														  <option>1990</option>
														  <option>1989</option>
														  <option>1988</option>
														  <option>1987</option>
														  <option>1986</option>
														  <option>1985</option>
														  <option>1984</option>
														</select>
														<label for="inputPassword3" class="col-sm-1 control-label">年</label>
													   <select class="form-control fl"style="width: 80px;" name="month">
													   	<option value="{{$userData['birth'][1]}}" selected="selected">{{$userData['birth'][1]}}</option>											
														  <option>01</option>
														  <option>02</option>
														  <option>03</option>
														  <option>04</option>
														  <option>05</option>
														  <option>06</option>
														  <option>07</option>
														  <option>08</option>
														  <option>09</option>
														  <option>10</option>
														  <option>11</option>
														  <option>12</option>							  
														</select>
														<label for="inputPassword3" class="col-sm-1 control-label">月</label>
													   <select class="form-control fl"style="width: 80px;" name="day">
													   	<option value="{{$userData['birth'][2]}}" selected="selected">{{$userData['birth'][2]}}</option>											
														  <option>01</option>
														  <option>02</option>
														  <option>03</option>
														  <option>04</option>
														  <option>05</option>
														  <option>06</option>
														  <option>07</option>
														  <option>08</option>
														  <option>09</option>
														  <option>10</option>
														  <option>11</option>
														  <option>12</option>
														  <option>13</option>
														  <option>14</option>
														  <option>15</option>
														  <option>16</option>
														  <option>17</option>
														  <option>18</option>
														  <option>19</option>
														  <option>20</option>
														  <option>21</option>
														  <option>22</option>
														  <option>23</option>
														  <option>24</option>
														  <option>25</option>
														  <option>26</option>
														  <option>27</option>
														  <option>28</option>
														  <option>29</option>
														  <option>30</option>
														  <option>31</option>
														</select>
														<label for="inputPassword3" class="col-sm-1 control-label">日</label>
													    </div>	
													   
													  </div>
													  
													  
													  <div class="form-group">
													  	
													  	<label for="inputPassword3" class="col-sm-2 control-label">
													    	地址
													    </label>
													    
													    <select class="form-control fl" style="width: 100px; margin-left: 15px;" name="province"  id="area1">														  
														</select>														
														<select class="form-control fl" style="width: 120px; margin-left: 30px;" name="city" id="area2">														  
														</select>														
														<select class="form-control fl" style="width: 120px; margin-left: 30px;" name="town" id="area3">														  
														</select>
													  </div>												  
													  <div class="form-group">
													    <label for="inputPassword3" class="col-sm-2 control-label">
													    	详细地址
													    </label>
													    <div class="col-sm-10">
													      <input type="text" class="form-control" 
													      	id="inputPassword3" placeholder="" name="detail" value="{{$userData['detail']}}">
													    </div>
													  </div>
													   <div class="form-group">
													    <label for="inputPassword3" class="col-sm-2 control-label">
													    	邮政编码
													    </label>
													    <div class="col-sm-10">
													      <input type="text" class="form-control" 
													      	id="inputPassword3" placeholder="" name="postcode" value="{{$userData['postcode']}}">
													    </div>
													  </div>
													 <div class="modal-footer">
														<button class="btn btn-primary">确认</button>
													</div>
												</form>
										</div>
										
									</div>
								</div>
							</div>
							<button class="btn btn-success" data-toggle="modal" data-target="#myModal" 
								style="background: white; border: none;color: #666666;height: 26px;
								padding-left: 0px;">
								个人资料
							</button>	

						</li>
						
						
						
						<li><a href="">安全设置</a></li>
						<li><a href="{{U('Center/myaddress')}}">我的收货地址</a></li>
					</ul>
					<ul class="one">
						<li class="special">售后服务</li>
						<li><a href="" >我的退换货</a></li>
						<li><a href="">申请退换货</a></li>
					</ul>
				</div>
				<!--公共左侧结束-->
				<div class="second fr">
					<div class="user" style="">
						<div class="welcome_l fl" style="">
							<p class="wel">
								<span class="w1">欢迎您，</span>
								<span class="w2">{{$userData['username']}}</span>
								<span class="w3">，未读消息(0)</span>
								
							</p>
							<ul class="safe">
								<li class="dx">账户安全</li>
								<li class="dv">
									<div class="sm1 fl"></div>
									<div class="sm2 fl"></div>
								</li>
								<li class="status ">
									<a href="">很危险</a>
									<a href="">提升</a>
								</li>
							</ul>
							<div style="width: 460px;height: 15px;"></div>
							<div class="mob">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<span class="m1">
									<i class="glyphicon glyphicon-phone"></i>&nbsp;&nbsp;手机&nbsp;<a href="">未绑定</a>
								</span>&nbsp;&nbsp;
								<span class="m2">
									<i class="glyphicon glyphicon-envelope"></i>&nbsp;&nbsp;邮箱&nbsp;<a href="">未绑定</a>
								</span>
							</div>
						</div>
						<div class="welcome_r fr" style=" width: 490px;height: 140px;">
							<ul class="int">
								<li style="margin-left: 60px;">
									<div><a href="">优惠券
									0 张</a></div>
								</li>
								<li>
									<div><a href="">礼品卡
									0 张</a></div>
								</li>
								<li>
									<div><a href="">积分
									0 张</a></div>
								</li>
							</ul>
						</div>
					</div>
					<!--我的订单-->
					<div class="near fr">
						<span class="sp1">我的最近订单</span>
						<span class="sp2">
							<a href="">待付款</a>&nbsp;|
							<a href="">待发货</a>&nbsp;|
							<a href="">待评价</a>
						</span>
						<span class="sp3">
							<a href="">查看全部订单</a>
						</span>
					</div>
					<!--我的订单结束-->
					<div class="near_lis fl">
						<span>您最近没有购买过任何商品<a href="">去挑选商品</a>吧~</span>
					</div>
				</div>																				
			</div>
		</div>
	{{include file="VIEW_PATH/Common/bottom.php"}}
		
		
		
		
		
	</body>
</html>
